package com.luocc.ccdemo.db

import android.os.Bundle
import android.util.Log
import com.luocc.ccdemo.entity.Result
import com.luocc.ccdemo.utils.Api
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.withContext

class BlogRepository {
    suspend fun getBlog(pagination: Int = 0, pageSize: Int = -1): Result<Bundle> {
        return withContext(Dispatchers.IO) {
            Api.getBlogs(pagination, pageSize)
        }
    }
}